package com.rfs.design.chain.test;

import com.rfs.design.chain.BusinessProcess;
import com.rfs.design.chain.ProcessContext;
import com.rfs.dto.ResponseDTO;
import org.springframework.stereotype.Service;

/**
 * @author renfushuai
 * @date 2022/8/29
 */
@Service
public class AfterSendMsgAction implements BusinessProcess<AfterSendMsgActionDto> {
    @Override
    public void process(ProcessContext<AfterSendMsgActionDto> context) {
        ResponseDTO<SendTaskDto> response = context.getResponse();
        SendTaskDto data = response.getData();
        System.out.println("发送完成之后操作:"+data.getMsgContext());
    }
}
